@model dynamic
@if (this.ViewData.TemplateInfo.TemplateDepth > 1) {
	<fieldset>
		<legend>@this.Html.Label("")</legend>
		@foreach (var property in ViewData.ModelMetadata.Properties.Where(p => p.ShowForEdit && !this.ViewData.TemplateInfo.Visited(p)))
		{
			@this.Html.Display(property.PropertyName)
		}
	</fieldset>
}
else
{
	foreach (var property in ViewData.ModelMetadata.Properties.Where(p => p.ShowForEdit && !this.ViewData.TemplateInfo.Visited(p)))
	{
		@this.Html.Display(property.PropertyName)
	}
}
